package com.tony.mindwarning.mpper;

import com.tony.mindwarning.pojo.Product;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 *
 * @Title: WarnMapper
 * @Auther: 皮蛋布丁
 * @Date: 2021/04/11/15:38
 * @Description:
 */
@Mapper
public interface WarnMapper {

    /**
     * @Description: totalCount 查询商品总数
     * @Param: []
     * @return: int
     * @Author: 皮蛋布丁
     */
    int totalCount();

    /**
     * @Description: getProductByPage 联表查询带类别的商品信息
     * @Param: [map]
     * @return: java.util.List<com.tony.mindwarning.pojo.Product>
     * @Author: 皮蛋布丁
     */
    List<Product> getProductByPage(Map<String,Object> map);
}
